package com.liyujie.dyeingmachine.ui.home.operate;

import android.os.Bundle;

import androidx.lifecycle.ViewModelProvider;

import com.liyujie.dyeingmachine.R;
import com.liyujie.dyeingmachine.databinding.ActivityOperationPageBinding;
import com.liyujie.dyeingmachine.ui.BaseActivity;

/**
 * 操作页面
 */
public class OperationPageActivity extends BaseActivity<ActivityOperationPageBinding> {


    /**
     * VM
     */
    private OperationPageViewModel operationPageViewModel;


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_operation_page;

    }

    public void initViewModel() {
        //VM
        operationPageViewModel = new ViewModelProvider(getViewModelStore(), new ViewModelProvider.AndroidViewModelFactory(getApplication())).get(OperationPageViewModel.class);
        binding.setViewModel(operationPageViewModel);

    }
}
